﻿@model Tuple<string, int?, bool>
 @Html.GetDeptTree(Model.Item1 ?? "DepartmentID", Model.Item2, Model.Item3 ? "Department" : null)
<script type="text/javascript">
    $(document).ready(function () {
        $("#DepartmentID_Tree").bind("loaded.jstree", function (e, data) {
            data.inst.open_all(-1); // -1默认全部展开节点 
        }).jstree({
            "plugins": ["themes", "html_data", "ui"],
            "core": { "initially_open": ["DepartmentID_node1"] }
        });
    });

</script>
